package cn.gxljc.technology.store_management.util;

import java.util.ArrayList;
import java.util.List;

import cn.gxljc.technology.store_management.entity.Ware;


public class PageUtil {
	public static int index=1;
	
	public static int pageSize=10;
	
	public static int start=(index-1)*pageSize;
	
	public static int end=index*pageSize;
	
	public static List<Ware> list=new ArrayList<Ware>();

	public static void setIndex(int index) {
		PageUtil.index = index;
		PageUtil.start = (index-1)*pageSize;
		PageUtil.end = pageSize;
	}

	public static void setPageSize(int pageSize) {
		PageUtil.pageSize = pageSize;
		PageUtil.start = (index-1)*pageSize;
		PageUtil.end = pageSize;
	}
	
}

